<?php
require_once 'cuspo_autoload.php';
global $config_cuspo;

$config_cuspo['basedir'] = ABSPATH."wp-content/plugins/custom-posts/";
$config_cuspo['vidwiz_from_siteurl'] = "/wp-content/plugins/custom-posts/";
$config_cuspo['theme_url'] = get_bloginfo('template_url')."/";
$config_cuspo['operation'] = "operation";
$config_cuspo['siteurl'] = get_site_url();

$config_cuspo['smarty']['template_dir'] = $config_cuspo['basedir'].'templates';
$config_cuspo['smarty']['compile_dir'] = $config_cuspo['basedir'].'libs/Smarty/templates_c/';
$config_cuspo['smarty']['config_dir'] = $config_cuspo['basedir'].'libs/Smarty/configs/';
$config_cuspo['smarty']['cache_dir'] = $config_cuspo['basedir'].'libs/Smarty/cache/';

$config_cuspo['patterns']['description'] = '/^[\w0-9 \;\:\.\,èéòàìù]{3,250}/';
$config_cuspo['patterns']['metatags'] = '/^[\w0-9 \,èéòàìù]{3,200}/';
$config_cuspo['patterns']['title'] = '/^[\w0-9 \;\:\.\,èéòàìù]{3,20}/';
$config_cuspo['patterns']['remove_absolute_path_wpcontent'] = '/\/wp\-content.{0,1024}/';
$config_cuspo['patterns']['remove_absolute_path_wpadmin'] = '/\/wp\-admin.{0,1024}/';
$config_cuspo['patterns']['extension'] = '/[\.]{1}[a-zA-Z0-9]{1,10}$/';
$config_cuspo['patterns']['filename'] = '/[\/]{1}[a-zA-Z0-9\.]{1,1024}$/';

$config_cuspo['tables']['concorso'] = "wp_cuspo_concorsi";
$config_cuspo['tables']['corso'] = "wp_cuspo_corsi";
$config_cuspo['tables']['servizio'] = "wp_cuspo_servizi";
$config_cuspo['tables']['news'] = "wp_cuspo_news";
$config_cuspo['tables']['lavoro'] = "wp_cuspo_lavoro";
$config_cuspo['tables']['facebook'] = "wp_cuspo_facebook";
$config_cuspo['tables']['sliders'] = "wp_cuspo_sliders";


$config_cuspo['editPostsTitles']['concorsi'] = "Modifica concorsi";
$config_cuspo['editPostsTitles']['corsi'] = "Modifica corsi";
$config_cuspo['editPostsTitles']['servizi_offerti'] = "Modifica servizi offerti";

$config_cuspo['editPostsOperations']['concorso'] = "cuspo_update_concorso";
$config_cuspo['editPostsOperations']['corso'] = "cuspo_update_corso";
$config_cuspo['editPostsOperations']['servizio'] = "cuspo_update_servizio";
$config_cuspo['editPostsOperations']['news'] = "cuspo_update_news";
$config_cuspo['editPostsOperations']['lavoro'] = "cuspo_update_lavoro";

$config_cuspo['placeholder_big'] = $config_cuspo['theme_url']."img/noi_mg_500x370.jpg";
$config_cuspo['placeholder_small'] = $config_cuspo['theme_url']."img/noi_mg_500x250.jpg";
?>
